Optimal. Leaf size=92 \[ \sqrt{3+2 \sqrt{21}} \text{EllipticF}\left (\sin ^{-1}\left (\sqrt{\frac{2}{\sqrt{21}-3}} x\right ),\frac{1}{2} \left (\sqrt{21}-5\right )\right )-\sqrt{\frac{1}{2} \left (3+\sqrt{21}\right )} E\left (\sin ^{-1}\left (\sqrt{\frac{2}{-3+\sqrt{21}}} x\right )|\frac{1}{2} \left (-5+\sqrt{21}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.165331, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {1180, 524, 424, 419} \[ \sqrt{3+2 \sqrt{21}} F\left (\sin ^{-1}\left (\sqrt{\frac{2}{-3+\sqrt{21}}} x\right )|\frac{1}{2} \left (-5+\sqrt{21}\right )\right )-\sqrt{\frac{1}{2} \left (3+\sqrt{21}\right )} E\left (\sin ^{-1}\left (\sqrt{\frac{2}{-3+\sqrt{21}}} x\right )|\frac{1}{2} \left (-5+\sqrt{21}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1180
Rule 524
Rule 424
Rule 419
Rubi steps
\begin{align*} \int \frac{3-x^2}{\sqrt{3-3 x^2-x^4}} \, dx &=2 \int \frac{3-x^2}{\sqrt{-3+\sqrt{21}-2 x^2} \sqrt{3+\sqrt{21}+2 x^2}} \, dx\\ &=\left (9+\sqrt{21}\right ) \int \frac{1}{\sqrt{-3+\sqrt{21}-2 x^2} \sqrt{3+\sqrt{21}+2 x^2}} \, dx-\int \frac{\sqrt{3+\sqrt{21}+2 x^2}}{\sqrt{-3+\sqrt{21}-2 x^2}} \, dx\\ &=-\sqrt{\frac{1}{2} \left (3+\sqrt{21}\right )} E\left (\sin ^{-1}\left (\sqrt{\frac{2}{-3+\sqrt{21}}} x\right )|\frac{1}{2} \left (-5+\sqrt{21}\right )\right )+\sqrt{3+2 \sqrt{21}} F\left (\sin ^{-1}\left (\sqrt{\frac{2}{-3+\sqrt{21}}} x\right )|\frac{1}{2} \left (-5+\sqrt{21}\right )\right )\\ \end{align*}
Mathematica [C] time = 0.165738, size = 107, normalized size = 1.16 \[ -\frac{i \left (\left (\sqrt{21}-3\right ) E\left (i \sinh ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{21}}} x\right )|-\frac{5}{2}-\frac{\sqrt{21}}{2}\right )-\left (\sqrt{21}-9\right ) \text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{21}}} x\right ),-\frac{5}{2}-\frac{\sqrt{21}}{2}\right )\right )}{\sqrt{2 \left (\sqrt{21}-3\right )}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.291, size = 204, normalized size = 2.2 \begin{align*} 36\,{\frac{\sqrt{1- \left ( 1/2+1/6\,\sqrt{21} \right ){x}^{2}}\sqrt{1- \left ( 1/2-1/6\,\sqrt{21} \right ){x}^{2}} \left ({\it EllipticF} \left ( 1/6\,x\sqrt{18+6\,\sqrt{21}},i/2\sqrt{7}-i/2\sqrt{3} \right ) -{\it EllipticE} \left ( 1/6\,x\sqrt{18+6\,\sqrt{21}},i/2\sqrt{7}-i/2\sqrt{3} \right ) \right ) }{\sqrt{18+6\,\sqrt{21}}\sqrt{-{x}^{4}-3\,{x}^{2}+3} \left ( -3+\sqrt{21} \right ) }}+18\,{\frac{\sqrt{1- \left ( 1/2+1/6\,\sqrt{21} \right ){x}^{2}}\sqrt{1- \left ( 1/2-1/6\,\sqrt{21} \right ){x}^{2}}{\it EllipticF} \left ( 1/6\,x\sqrt{18+6\,\sqrt{21}},i/2\sqrt{7}-i/2\sqrt{3} \right ) }{\sqrt{18+6\,\sqrt{21}}\sqrt{-{x}^{4}-3\,{x}^{2}+3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{x^{2} - 3}{\sqrt{-x^{4} - 3 \, x^{2} + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{-x^{4} - 3 \, x^{2} + 3}{\left (x^{2} - 3\right )}}{x^{4} + 3 \, x^{2} - 3}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{x^{2}}{\sqrt{- x^{4} - 3 x^{2} + 3}}\, dx - \int - \frac{3}{\sqrt{- x^{4} - 3 x^{2} + 3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{x^{2} - 3}{\sqrt{-x^{4} - 3 \, x^{2} + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]